#!/bin/bash

# pasta do pen-drive
folder=$1
[[ $folder != */ ]] && folder="$folder"/

# arquivo aglutinado
echo "G19---------------------------------------------------------------------" > "$folder""gall/g19.out"

for f in `ls $folder`;
do
    ./compile $folder$f
    binname=${f%\.*}
    echo $binname
#    ./$f
#    java main.Main "$folder""in/$name" 2> "$folder""g19/$name"".out"
#    cat "$folder""g19/$name"".out" >> "$folder""gall/g19.out"
done
